/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1653955651580_7584';

  // add your middleware config here
  config.middleware = [];

  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };
  config.mysql={
    // 单数据库信息配置
    client: {
      // host
      host: 'localhost',
      // 端口号
      port: '3306',
      // 用户名
      user: 'root',
      // 密码
      password: 'root',
      // 数据库名
      database: 'sx1',
    }
  }

    // 支付宝配置
    config.payConfig = {
      // 用户id
      appId: "2021000118644708",
      // 应用私钥
      privateKey: "MIIEowIBAAKCAQEAmxmGo+bgngtrmTapRE4aMTChqaDD5Jl1f0hHVaPl7IwFreA+FdLj8r6IoM4NUUbYeX3eX+ifdT/mFioB0k0T9E4ur8zQwuiHZlWTekL3nIFGXx1jhH1fcUDH8I0Nn61AUlmwFEi0sVah2lVcR3JWngB8j+tEkSRhmG9Jnkeivj1/vmoOohhSpYTnVCHNIasLeNFnmCOoGeZIR0aKxz9E56PEmXqA/xvy9xmBsR+tU1+TEDKmxn6QnTrhbN6MywweNY2h7adn3bSQyxbD3beKlwxTDFgHp+2A987NgctomvnajnaSb13b+oFwemRSJaG/A2ie8yG2TVOTYtsY6XkGNQIDAQABAoIBAH4dFl6ld9TqwlX1nVL+EswWmA0evMpfgau6cM6RE37xKBkG8lS6g0E5bk0a3rdM3O6Ey1G/DBHBoGw7QfnnVKdc/xdRehpSCu7J/L34P/CRKVBjzCzJ6NZk726IsyA4Nsn/RW5o5Awivj6TFBLARO/6w04e5kUCiRzyuLCr3QfEI2Wvo/EOcBeBkVrcW/TPklWLSelv5SA6yNlUmLAMx7ZG8l+kLKsGjayiQjNWCzPLKFbR/2Yvq7Yp+SNRxglT5BGdK5RHN4qmVf2zbIBL/sN2eQv66L/KLRU+bGlD2EKteHiJw1XHvNBPoRanlT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8cwm0U8kWm/+MOmdppLT6+52XmqevEZxd/H3i9/eFXeAwhHbrsTKu+K/5JZC6Bb06BFilcTNNd/0vTraaE4jUha0ZZKMuKIs+ciNJiRbnpA7oLZAALWaQfBwfUYGAQa89bp665CFLRp8LqH0sdNIopm/woaXqGAsAhdIevw23k9NqBxFcbxF6nD3Qli7gZz4AGMzwRdPhAb2RZkDuZJ3zlHdOZQOHzAvn8vn3vx4VOS65yQgqtQIDAQAB",
      signType: "RSA2", // 签名算法
      gateway: "https://openapi.alipaydev.com/gateway.do", // 支付宝网关地址
      timeout: 5000, // 网关超时时间，单位毫秒
      camelcase: true // 驼峰写法
    }
  config.security={
    
      csrf: {
        enable: false
      }
    
  }
  return {
    ...config,
    ...userConfig,
  };
};
